import request from '@/utils/request'
/** 门禁静态数据接口 */
// 获取门禁静态数据列表
export function listDoor(data) {
    return request({
      url: '/screen/door/list',
      method: 'post',
      data: data
  })
}
// 新增门禁静态数据
export function addDoor(data) {
    return request({
      url: '/screen/door',
      method: 'post',
      data: data
    })
  }  

  // 删除门禁静态数据
export function deleteDoor(doorId) {
    return request({
      url: '/screen/door/'+doorId,
      method: 'delete',      
    })
  } 
  // 修改门禁静态数据
export function updateDoor(data) {
    return request({
      url: '/screen/door',
      method: 'put',
      data: data
    })
  }
  // 查询门禁静态数据
export function getDoor(doorId) {
    return request({
      url: '/screen/door/' + doorId,
      method: 'get'
    })
  } 